import request from '../../utils/request'
import axios from 'axios'

/*登陆返回token*/
export const login = (loginFrom) => {
  return axios({
    url: '/api/login',
    method: 'post',
    data: loginFrom
  })
}

/*获取登陆用户信息*/
export const loginInfo = () => {
  return axios({
    url: '/api/login/info',
    method: 'get',
  })
}


/*退出登陆*/
export const logout = () => {
  return axios({
    url: '/api/logout',
    method: 'post',
  })
}
